package com.hejielife.activeobject1;

/**
 * 2019年8月2日 下午5:16:00
 * 
 * @author hejielife
 * @despribe ActiveObjectFactory
 */
public class ActiveObjectFactory {
	public static ActiveObject createActiveObject() {
		Servant servant = new Servant();
		ActivationQueue queue = new ActivationQueue();
		SchedulerThread scheduler = new SchedulerThread(queue);
		Proxy proxy = new Proxy(scheduler, servant);
		scheduler.start();
		return proxy;
	}
}
